package demo.jdk.features.jdk7;

/**
 * @author Ranchoz  2018/9/9 12:39
 **/
public class SippressExample2 {


	public static void main(String[] args) {
		try {
			int t = 10 / 0;
			System.out.println("result = " + t);
		} catch (ArithmeticException e) {
			e.addSuppressed(new IllegalArgumentException("参数错误！"));
			e.printStackTrace();
		}
	}
}
